#ifndef QCOLORBUTTON_H
#define QCOLORBUTTON_H

#include <QtGui/QPushButton>
#include <QtGui/QColor>

class QColorButton : public QPushButton
{
    Q_OBJECT
    
    Q_PROPERTY(QColor Color READ color WRITE changeColor)
    Q_PROPERTY(int DialogSize READ dialogSize WRITE setDialogSize)

public:
    QColorButton(QWidget *parent = 0);
    QColor color();
    int dialogSize();
    void setDialogSize(int);

signals:
    void colorChanged(QColor);

public slots:
    void clickedMe();
    void changeColor(QColor);

private:
    QColor m_color;
    int m_size;
};

#endif
